package china.lzy.api;

import china.lzy.entity.ResResult;
import china.lzy.entity.dto.PageDto;
import china.lzy.entity.pojo.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.sql.ResultSet;

/**
 * @ Author     ：lzy
 * @ Date       ：Created in 19:32 2021/8/9
 * @ Description：api文档接口类
 */
@Api(value = "用户", tags = "用户管理模块")
public interface UserControllerApi {
    @ApiOperation("保存/注册用户")
    public ResResult save(User user);

    @ApiOperation("用户登录")
    public ResResult login(User user);

    @ApiOperation("更新用户")
    public ResResult update(User user);

    @ApiOperation("删除用户")
    public ResResult delete(User user);

    @ApiOperation("分页查询")
    public ResResult findByPage(PageDto page);
}
